const state = () => ({

    assetStatus: [
      {
        type: 0,
        value: '未知',
        tag: '',
      },
      {
        type: 1,
        value: '新资产',
        tag: 'risk',
      },
      {
        type: 2,
        value: '数据更新',
        tag: 'success',
      },
      {
        type: 3,
        value: '数据未更新',
        tag: 'primary',
      },
    ],
    changeStatus: [
      {
        type: 1,
        value: '新增',
        tag: 'success',
      },
      {
        type: 2,
        value: '更新',
        tag: 'risk',
      },
      {
        type: 3,
        value: '失活',
        tag: '',
      },
    ],
    exposureStatus: [
      {
        type: 1,
        value: '低',
        tag: 'primary',
      },
      {
        type: 2,
        value: '中',
        tag: 'warning',
      },
      {
        type: 3,
        value: '高',
        tag: 'danger',
      },
    ],
    attackStatus: [
      {
        type: 1,
        value: '容易',
        tag: 'danger',
      },
      {
        type: 2,
        value: '一般',
        tag: 'primary',
      },
      {
        type: 3,
        value: '困难',
        tag: 'success',
      },
    ],
    commonField: [
      'company',
      'tag',
      'is_alive',
      'data_status',
      'exposure_risk',
      'vulnerability',
      'company_only',
      'tag_company',
      'tag_company_only',
    ]
  })
  
  const mutations = {}
  const actions = {}
  
  export default {
    namespaced: true, // 有命名空间
    state,
    mutations,
    actions,
  }
  